#!/bin/bash

echo "Is it morning? Please answer yes or no!"

#读取一个变量
read YES_OR_NO

case "$YES_OR_NO" in
yes|y|Yes|YES)
    echo "Good morning!"
    ;;
n|[nN][oO])
    echo "Good afternoon!"
    ;;
*)
    echo "Not recognized!"
    ;;
esac
